<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="__APP__/assets/css/mui.css">

    <title>DelphiWebMVCMUI</title>
</head>

<body style="background-color: #F2F2F2">


    <form class="mui-input-group">
        <div class="mui-input-row">
            <label>用户名</label>
            <input type="text" id="user" class="mui-input-clear" placeholder="请输入用户名">
        </div>
        <div class="mui-input-row">
            <label>密码</label>
            <input type="password" id="pwd" class="mui-input-password" placeholder="请输入密码">
        </div>
        <div class="mui-button-row">
            <button type="button" class="mui-btn mui-btn-primary">确认</button>
            <button type="button" class="mui-btn mui-btn-danger">取消</button>
        </div>
    </form>

    <script src="__APP__/assets/js/jquery-1.11.0.min.js"></script>
    <script src="__APP__/assets/mui.js"></script>
    <script>
        form.on('submit(save)', function(data) {
            // 数据提交
            // 查看jquer和ajax
            var ds = data.field;
            $.post("check", ds, function(ret) {
                if (ret.code == 0) {
                    window.location = "Main/";
                } else {
                    changevcode();
                    layer.msg(ret.message);
                }
            });
            return false;
        });
    </script>
</body>


</html>